package com.lixinlei.meetingfilm.gw.config;

import com.lixinlei.meetingfilm.gw.filters.MyGlobalFilter;
import com.lixinlei.meetingfilm.gw.predicates.JiangzhAfterRoutePredicateFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GWConf {

    @Bean
    public JiangzhAfterRoutePredicateFactory initJiangzhAfterRoutePredicateFactory() {
        return new JiangzhAfterRoutePredicateFactory();
    }

    @Bean
    public MyGlobalFilter initMyGlobalFilter(){
        return new MyGlobalFilter();
    }

}
